// tabBarComponent/tabBar.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
      type: Object,
      value: {
        "backgroundColor": "#ffffff",
        "color": "#979795",
        "selectedColor": "#88bf01",
        "list": [
          {
            "pagePath": "/pages/index/index",
            "text": "首页",
            "iconPath": "/images/tabBar/笔记，记录.png",
            "selectedIconPath": "/images/tabBar/笔记，记录 (1).png"
          },
          {
            "pagePath": "/pages/logs/logs",
            "text": "助手",
            "iconPath": "/images/tabBar/语音-1.png",
            "selectedIconPath": "/images/tabBar/语音-1 (1).png"
          },
          {
            "pagePath": "/pages/logs/logs",
            "iconPath": "/images/tabBar/plus-circle-fill.png",
            "isSpecial": true,
            "text": "常用"
          },
          {
            "pagePath": "/pages/analyze/analyze",
            "text": "分析",
            "iconPath": "/images/tabBar/分析.png",
            "selectedIconPath": "/images/tabBar/分析 (1).png"
          },
          {
            "pagePath": "/pages/my/my",
            "text": "我的",
            "iconPath": "/images/tabBar/我的.png",
            "selectedIconPath": "/images/tabBar/我的 (1).png"
          }
        ]
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    isIphoneX: app.globalData.systemInfo.model.search('iPhone X') != -1 ? true : false
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
